<div class="modal-content">
    <div class="modal-header">
        <button type="button" class="close" ng-click="myopen.opt_close()" aria-label="Close">
      <em class="ion-ios-close-empty sn-link-close"></em>
    </button>
        <h3 class="modal-title text-center">
            <samll>设备模式设定</samll>
        </h3>
    </div>
    <form class="form-horizontal ng-pristine ng-valid ng-scope">
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">模式名称</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" ng-model="patterm_data.name" placeholder="模式名称">
            </div>
        </div>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">保养时间</label>
            <div class="col-sm-9">
                <label>
                        <select class="form-control "  ng-model="time.t" ng-options="i.num as i.text for i in shijian" >
                        </select>
                    </label>
            </div>
        </div>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">颜色变化模式</label>
            <div class="col-sm-9">
                <div class="col-sm-2"><label class="radio-inline custom-radio nowrap"><input type="radio" name="inlineRadioOptions" id="inlineRadio1" value="跳变" ng-checked="patterm_data.colormode==0" ng-click="patterm_data.colormode=0" > <span>跳变</span></label></div>
                <div class="col-sm-2"><label class="radio-inline custom-radio nowrap"><input type="radio" name="inlineRadioOptions" id="inlineRadio3" value="静态" ng-checked="patterm_data.colormode==1"  ng-click="patterm_data.colormode=1" > <span>静态</span></label></div>
            </div>
        </div>
        <!-- 只有选择跳变后，才可见跳变速度 -->
        <div class="form-group" ng-if="patterm_data.colormode==0">
            <label for="inputEmail3" class="col-sm-2 control-label">跳变速度</label>
            <div class="col-sm-9" >
                <div class="slider-box ng-scope myyidong" ng-mouseup="dianji($event,'speed')" id="speed">
                    <ion-slider type="single" grid="false" min="0" max="100" from="patterm_data.speed" postfix="次/分钟" ng-model="shuzi" disable="false">
                    </ion-slider>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">红光占比</label>
            <div class="col-sm-9">
                <div class="slider-box ng-scope myyidong" ng-mouseup="dianji($event,'redscale')" id="redscale">
                    <ion-slider type="single" grid="false" min="0" max="100" from="patterm_data.redscale" postfix="%" ng-model="shuzi" disable="false">
                    </ion-slider>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">蓝光占比</label>
            <div class="col-sm-9">
                <div class="slider-box ng-scope myyidong" ng-mouseup="dianji($event,'bluescale')" id="bluescale">
                    <ion-slider type="single" grid="false" min="0" max="100" from="patterm_data.bluescale" postfix="%" ng-model="shuzi" disable="false">
                    </ion-slider>
                </div>
            </div>
        </div>

        <!-- 没有红光、蓝光亮度，只有一个亮度选项 -->
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">亮度</label>
            <div class="col-sm-9">
                <div class="slider-box ng-scope myyidong" ng-mouseup="dianji($event,'redlight')" id="redlight">
                    <ion-slider type="single" grid="false" min="0" max="100" from="patterm_data.redlight" postfix="%" ng-model="shuzi" disable="false">
                    </ion-slider>
                </div>
            </div>
        </div>
        <!--<div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">蓝光亮度</label>
            <div class="col-sm-9">
                <div class="slider-box ng-scope myyidong" ng-mouseup="dianji($event,'bluelight')"  id="bluelight">
                    <ion-slider type="single" grid="false" min="0" max="100" from="patterm_data.bluelight" postfix="%" ng-model="shuzi" disable="false">
                    </ion-slider>
                </div>
            </div>
        </div>-->

        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">模式强度</label>
            <div class="col-sm-9">
                <label>
                        <select class="form-control  show-tick "  selectpicker ng-model="patterm_data.strength " ng-options=" i for i in [1,1.5,2,2.5,3,3.5,4,4.5,5]">
                        </select>
                    </label>
            </div>
        </div>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">建议使用频次</label>
            <div class="col-sm-9">
                <div class="col-sm-2"><label class="radio-inline custom-radio nowrap"><input type="radio" name="inlineRadioOptions22" id="inlineRadio1" value="1次" ng-checked="patterm_data.frequency==1" ng-click="patterm_data.frequency=1"> <span>1次</span></label></div>
                <div class="col-sm-2"><label class="radio-inline custom-radio nowrap"><input type="radio" name="inlineRadioOptions22" id="inlineRadio2" value="2次" ng-checked="patterm_data.frequency==2" ng-click="patterm_data.frequency=2"> <span>2次</span></label></div>
                <div class="col-sm-2"><label class="radio-inline custom-radio nowrap"><input type="radio" name="inlineRadioOptions22" id="inlineRadio3" value="3次" ng-checked="patterm_data.frequency==3" ng-click="patterm_data.frequency=3"> <span>3次</span></label></div>
            </div>
        </div>
    </form>
    <div class="modal-footer">
        <button type="button" class="btn btn-warning" ng-click="myopen.opt_close()">取消</button>
        <button type="button" class="btn btn-primary" ng-click="Submit()">完成</button>
    </div>
</div>